<template>
	<view class="container">
		<!-- 顶部轮播 -->
		<view>
			<swiper autoplay="true" circular="true">
				<swiper-item>
					<view>
						<image class="img" src="../../../static/pension/banner.png" mode=""></image>
					</view>
				</swiper-item>
				<swiper-item>
					<view>
						<image class="img" src="../../../static/pension/banner.png" mode=""></image>
					</view>
				</swiper-item>
				<swiper-item>
					<view>
						<image class="img" src="../../../static/pension/banner.png" mode=""></image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<!-- 社区地址及联系方式 -->
		<view class="community">
			<view class="name">方兴社区养老</view>
			<view>
				<text class="left">详细地址：</text>
				<text class="right">合肥书方兴社区瑞源酒店</text>
				<u-icon name="arrow-right" color="#F0812D" size="20"></u-icon>
			</view>
			<view class="contact">
				<text class="left">联系电话：</text>
				<text class="right">0551-84267772</text>
				<image src="../../../static/pension/phone.png" mode=""></image>
			</view>
		</view>
		<!-- 商品介绍 -->
		<view></view>
		<!-- 选择入住时间 -->
		<view class="check-in">
			<view class="come">入住</view>
			<view class="time">03月19日</view>
			<view class="come go">离开</view>
			<view class="time">03月20日</view>
			<u-icon name="arrow-right" color="#F0812D" size="20" margin-left="10"></u-icon>
			<view class="come night">共1晚</view>
		</view>
		<!-- 套餐列表 -->
		<view class="menu">
			<image src="../../../static/pension/menu.png" mode=""></image>
			<view class="right">
				<view class="top">标准双床房</view>
				<view class="middle">20㎡/楼层1-3</view>
				<view class="bottom">
					<view class="price">￥189</view>
					<view class="reserve" @click="navTo">预定</view>
				</view>
			</view>
		</view>
		<view class="menu">
			<image src="../../../static/pension/menu.png" mode=""></image>
			<view class="right">
				<view class="top">标准双床房</view>
				<view class="middle">20㎡/楼层1-3</view>
				<view class="bottom">
					<view class="price">￥189</view>
					<view class="reserve">预定</view>
				</view>
			</view>
		</view>
		<view class="menu">
			<image src="../../../static/pension/menu.png" mode=""></image>
			<view class="right">
				<view class="top">标准双床房</view>
				<view class="middle">20㎡/楼层1-3</view>
				<view class="bottom">
					<view class="price">￥189</view>
					<view class="reserve">预定</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		methods:{
			navTo(){
				uni.navigateTo({
					url:"./placeOrder"
				})
			}
		}
	}
</script>

<style lang="less">
	.container{
	}
	swiper{
		height: 694rpx;
		width: 750rpx;
	}
	swiper-item{
		height: 694rpx;
		width: 750rpx;
	}
	.img{
		width: 750rpx;
		height: 694rpx;
	}
	.community{
		width: 690rpx;
		height: 209rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 20rpx rgba(0, 0, 0, 0.16);
		border-radius: 12rpx;
		margin-top: 30rpx;
		margin-left: 30rpx;
		padding-left: 20rpx;
		padding-top: 20rpx;
		.name{
			font-size: 32rpx;
			font-weight: bold;
			color: #333333;
			margin-bottom: 20rpx;
		}
	}
	.left{
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}
	.right{
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		margin-right: 15rpx;
	}
	.contact{
		margin-top: 20rpx;
		display: flex;
		align-items: center;
		image{
			width: 32rpx;
			height: 32rpx;
		}
	}
	.check-in{
		width: 690rpx;
		height: 80rpx;
		background: #FFF5EC;
		border-radius: 8rpx;
		margin-top: 30rpx;
		margin-left: 30rpx;
		display: flex;
		align-items: center;
		padding: 0 20rpx;
	}
	.come{
		font-size: 28rpx;
		color: #333333;
		margin-right: 10rpx;
	}
	.time{
		font-size: 32rpx;
		font-weight: bold;
		color: #F09238;
	}
	.go{
		margin-left: 70rpx;
	}
	.night{
		margin-left: 50rpx;
	}
	.menu{
		width: 690rpx;
		height: 224rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 20rpx rgba(0, 0, 0, 0.16);
		margin-top: 30rpx;
		margin-left: 30rpx;
		padding: 20rpx;
		display: flex;
		align-items: center;
		image{
			width: 248rpx;
			height: 182rpx;
		}
		.right{
			margin-left: 30rpx;
			.top{
				font-size: 28rpx;
				font-weight: bold;
				color: #333333;
				margin-bottom: 20rpx;
			}
			.middle{
				font-size: 26rpx;
				font-weight: 400;
				color: #333333;
				margin-bottom: 20rpx;
			}
			.bottom{
				display: flex;
				width: 356rpx;
				align-items: center;
				justify-content: space-between;
			}
		}
	}
	.reserve{
		width: 120rpx;
		height: 50rpx;
		background: linear-gradient(180deg, #F09238 0%, #EC5F2A 100%);
		border-radius: 30rpx;
		text-align: center;
		line-height: 50rpx;
		font-size: 26rpx;
		color: #FFFFFF;
	}
	.price{
		font-size: 30rpx;
		font-weight: bold;
		color: #F0812D;
	}
</style>
